package com.gper.vip.homework.facotry.method;

public class Test {

    public static void main(String[] args) {
        Car bmw = new BMWCarFactory().createCar();
        bmw.driver();

        System.out.println("====================");
        Car benz = new BenzCarFactory().createCar();
        benz.driver();
    }
}
